package xcu.lxj.nettychat.chat.domain.vo.response;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//群成员列表的成员信息
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChatRoomResp {

    @Schema(description = "房间号")
    private Long roomId;

    @Schema(description = "房间类型 1群聊 2单聊")
    private Integer type;

    @Schema(description = "最新消息")
    private String text;

    @Schema(description = "会话名称")
    private String name;

    @Schema(description = "会话头像")
    private String avatar;

    @Schema(description = "房间最后活跃时间(用来排序)")
    private Date activeTime;

    @Schema(description = "未读数")
    private Integer unreadCount;
}

